Returns data about ip-based restriction for Hub.
If enabled only visitors from whitelisted IP addresser or IP ranges are allowed to access the Hub. All other visitors will see 404 error.
Supported address formats:
- IP V4 address,
- IP V4 range in CIDR notation.
Security
ApiKeyAuth
- Main US regionhttps://subdomain-of-your-account.app.statushub.io/api/v3/hubs/{subdomain}/access_restriction/ip_whitelist
- EU regionhttps://subdomain-of-your-account.app-eu1.statushub.io/api/v3/hubs/{subdomain}/access_restriction/ip_whitelist
curl -i -X GET \
'https://subdomain-of-your-account.app.statushub.io/api/v3/hubs/{subdomain}/access_restriction/ip_whitelist?api_version=V3-R1' \
-H 'X-API-KEY: YOUR_API_KEY_HERE'Response
{ "enabled": true, "ip_whitelist": [ "54.210.121.161", "144.201.96.0/21" ] }